package org.lex.io.filesystem.tools.advcleaner;

import java.io.File;
import java.io.OutputStream;
import java.io.PrintWriter;

import org.lex.io.filesystem.traveller.FileProcessor;


public class MyProcessor implements FileProcessor<Object> {
	private PrintWriter out = null;

	public MyProcessor(OutputStream out) {
		if (null == out)
			out = System.out;
		this.out = new PrintWriter(out, true);
	}

	public Object operate(File file) {
		try {
			out.println(file.getAbsolutePath());
			file.delete();
		} catch (Exception e) {
		}
		return null;
	}
}
